package com.snow.fvmusic.service;

import com.snow.fvmusic.bo.CommentAndGreatParam;

import java.util.List;

/**
 * @Author ：snow
 * @Date ：Created in 2020-10-21
 * @Description：
 * @Modified By：
 * @Version:
 */
public interface MessageService {
    /**
     * 获取用户的点赞消息
     * @param userId
     * @param limit
     * @return
     */
    List<CommentAndGreatParam> getGreatMessage(Long userId, Integer limit);

    /**
     * 获取用户的评论消息
     * @param userId
     * @param limit
     * @return
     */
    List<CommentAndGreatParam> getCommentMessage(Long userId, Integer limit);

    /**
     * 添加消息
     * @param messages content 为null 点赞消息，content不为null评论消息
     */
    void addMessages(CommentAndGreatParam message);
}
